#ifndef APPSETTINGSSTRORAGEBYQSETTINGS_H
#define APPSETTINGSSTRORAGEBYQSETTINGS_H

#include "abstractappsettingsstorage.h"
#include <QObject>
#include <QSettings>

class AppSettingsStrorageByQSettings : public AbstractAppSettingsStorage {
	Q_OBJECT
public:

	// AbstractAppSettingsStorage interface
public:
	QString host();
	void saveHost(const QString &host);
	QString login();
	void saveLogin(const QString &login);
	QString password();
	void savePassword(const QString &password);

	friend Singleton<AbstractAppSettingsStorage>;
signals:

public slots:

private:
	explicit AppSettingsStrorageByQSettings(QObject *parent = 0);

	QSettings mSettings;
};

#endif // APPSETTINGSSTRORAGEBYQSETTINGS_H
